<?php
/**
 * 奖品基类
 * User: Administrator
 * Date: 2019\2\12 0012
 * Time: 18:34
 */

namespace app\Lib\InterfaceIn\Present;


interface Present
{
    public function __construct($presentId = 0,$cache = true);

    /**
     * 中奖几率
     * @return int
     */
    public function getProbabilityNum();

    /**
     * 奖品种类
     * @return string
     */
    public function getPresentType();

    /**
     * 奖品名称
     * @return string
     */
    public function getPresentName();

    /**
     * 奖品图片
     * @return string
     */
    public function getPresentImg();

    /**
     * 奖品数量
     * @return string
     */
    public function getPresentNum();

    /**
     * 奖品id
     * @return int
     */
    public function getPresentId();

    /**
     * 清除该类的所有缓存
     * @return mixed
     */
    public function delCache();
}